import sqlalchemy
import databases

from app.core.config import settings


database = databases.Database(str(settings.SQLALCHEMY_DATABASE_URI))
metadata = sqlalchemy.MetaData()

from app.expert.models import Expert
from app.expertise.models import Expertise
from app.customer.models import Customer

engine = sqlalchemy.create_engine(settings.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True)
metadata.create_all(engine)
